package com.itfreer.data.app.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

import com.itfreer.form.api.entity.EntityBase;
import com.itfreer.form.api.reflect.DictionaryField;

/**
 * 定义意见实体
 */
@Entity(name = "sso_app_book")
public class AppBookEntity extends EntityBase implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@Id
	@Column(name = "s_id", length = 50, nullable = true)
	private String id;

	/**
	 * 所属的app id
	 */
	@Column(name = "s_infoid", length = 50, nullable = true)
	@DictionaryField(dictionaryName = "p_appinfo", toFieldName = "infoName")
	private String infoid;

	/**
	 * 所属的app名称
	 */
	@Transient
	private String infoName;

	/**
	 * 意见内容
	 */
	@Column(name = "s_yjnr", columnDefinition = "text", nullable = true)
	private String yjnr;

	/**
	 * 创建人ID
	 */
	@Column(name = "s_cjrid", length = 50, nullable = true)
	private String cjrid;

	/**
	 * 创建人名称
	 */
	@Column(name = "s_cjrmc", length = 50, nullable = true)
	private String cjrmc;

	/**
	 * 创建时间
	 */
	@Column(name = "d_cjsj", nullable = true)
	private java.util.Date cjsj;

	/**
	 * 创建人机构
	 */
	@Column(name = "s_cjrjg", length = 50, nullable = true)
	private String cjrjg;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getInfoid() {
		return infoid;
	}

	public void setInfoid(String infoid) {
		this.infoid = infoid;
	}

	@Transient
	public String getInfoName() {
		return infoName;
	}

	public void setInfoName(String infoName) {
		this.infoName = infoName;
	}

	public String getYjnr() {
		return yjnr;
	}

	public void setYjnr(String yjnr) {
		this.yjnr = yjnr;
	}

	public String getCjrid() {
		return cjrid;
	}

	public void setCjrid(String cjrid) {
		this.cjrid = cjrid;
	}

	public String getCjrmc() {
		return cjrmc;
	}

	public void setCjrmc(String cjrmc) {
		this.cjrmc = cjrmc;
	}

	public java.util.Date getCjsj() {
		return cjsj;
	}

	public void setCjsj(java.util.Date cjsj) {
		this.cjsj = cjsj;
	}

	public String getCjrjg() {
		return cjrjg;
	}

	public void setCjrjg(String cjrjg) {
		this.cjrjg = cjrjg;
	}

	@Override
	public void setCreateTime(Date time) {
		this.cjsj = time;
	}

	@Override
	public void setCreateUserID(String userID) {
		this.cjrid = userID;
	}

	@Override
	public void setCreateUserName(String userName) {
		this.cjrmc = userName;
	}
}
